package com.igeek.ch02;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @package com.igeek.ch02
 * @Description
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/11/15 14:57
 */
public class MainTest {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(MyConfig.class);
        ICount count = ac.getBean("count", ICount.class);
        //count.getClass() = class com.igeek.ch02.CountImpl$$EnhancerBySpringCGLIB$$d8e805a
        System.out.println("count.getClass() = " + count.getClass());
        int add = count.add(-3, 4);
        System.out.println("---------------------");

        int a = 10;
        double b = a;
        System.out.println(b>10);
        //count.mul(1.0, 2.0);
    }
}
